﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;

namespace admin
{
    public partial class login : UserControl
    {
        public login()
        {
            InitializeComponent();
            this.bt_login.Click += new RoutedEventHandler(bt_login_Click);
        }

        void bt_login_Click(object sender, RoutedEventArgs e)
        {

            IsolatedStorageSettings.ApplicationSettings["userid"] = tb_username.Text.ToString().Trim();
            IsolatedStorageSettings.ApplicationSettings["pwd"] = pwb_pwd.Password.ToString().Trim();

            Page myp = this.Parent as Page;

            myp.gotopage(new doing());
        }
    }
}
